package com.itcast.demo.demo1.Enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public enum UserStatusEnum {

    PUBLISH(1, "发布"),
    DRAFT(2, "草稿");

    UserStatusEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;
}
